﻿@model Ninesky.Web.ViewModels.Notice

<div class="panel panel-default">
    <div class="panel-heading">
        @switch (Model.Type)
        {
            case ViewModels.NoticeType.Succeed:
                <span class="glyphicon glyphicon-ok"></span>
                break;
            case ViewModels.NoticeType.Failure:
                <span class="glyphicon glyphicon-remove"></span>
                break;
            case ViewModels.NoticeType.Warning:
                <span class="glyphicon glyphicon-exclamation-sign"></span>
                break;
            case ViewModels.NoticeType.Notify:
                <span class="glyphicon glyphicon-comment"></span>
                break;
        }
        @Model.Tile
    </div>

    <div class="panel-body">
        @Model.Message <p>

            @foreach (var item in Model.Links)
            {
                <a class="btn btn-default" href="@item.Value">@item.Key</a>
            }
    </div>
</div>